package com.yq.cns.ui.main

import com.yq.cns.R
import com.yq.cns.entity.BottomNavigatorEntity
import com.yq.cns.ui.main.fragment.MineFragment
import com.yq.cns.ui.main.fragment.news.NewsFragment
import javax.inject.Inject

class MainRepository @Inject constructor() {

    public suspend fun getBottomNavigatorData(): Map<Int, BottomNavigatorEntity> {
        val map = mutableMapOf<Int, BottomNavigatorEntity>()
        map[0] = BottomNavigatorEntity(
            "新闻",
            R.drawable.tab_news_n,
            R.drawable.tab_news_y,
            NewsFragment()
        )
        map[1] =
            BottomNavigatorEntity("我的", R.drawable.tab_my_n, R.drawable.tab_my_y, MineFragment())
        return map
    }

}